﻿angular.module('app.common').service('notify', [
	function () {
		'use strict';
		// wrap the toastr framework so that it can be tested witha mock in the unit tests
		var success = function (options) {
			toastr.success(options);
		}, error = function (options) {
			toastr.error(options);
		}, warning = function (options) {
			toastr.warning(options);
		}, info = function (options) {
			toastr.info(options);
		}, svc = {
			success: success,
			error: error,
			warning: warning,
			info: info
		};

		return svc;
	}]);